package com.aqielife.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.cassandra.core.mapping.PrimaryKey;
import org.springframework.data.cassandra.core.mapping.Table;

import java.io.Serializable;


/**
 * @author aqie
 * @date 2022/02/04 20:10
 * @desc
 */

@Table("city")
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Data
public class City implements Serializable {
  private static final long serialVersionUID = -2081742442561524068L;

  @PrimaryKey
  @Id
  private String id;

  /**
   * 省份编号
   */
  private Long provinceId;

  /**
   * 城市名称
   */
  private String cityName;

  /**
   * 描述
   */
  private String description;
}
